define(function(require){
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");
	
	var Model = function(){
		this.callParent();
	};
	
	//图片路径转换
	Model.prototype.toUrl = function(url){
		return url ? require.toUrl(url) : "";	
	};

	Model.prototype.modelParamsReceive = function(event){
	
		//alert(this.params.id);
		var datat = this.comp("newsData");
		datat.setFilter("filter1", "n_id = " +this.params.id);
 		datat.refreshData();
	};

	Model.prototype.button1Click = function(event){
		this.close();
	};

	return Model;
});